﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace Agile_E
{
    public partial class Main : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            
        }

        protected void btnpayroll_Click(object sender, EventArgs e)
        {
            Response.Redirect("Payroll.aspx");
        }

        protected void btnsearch_Click(object sender, EventArgs e)
        {
            Response.Redirect("CarSearch.aspx");
        }

        protected void btnsales_Click(object sender, EventArgs e)
        {
            Response.Redirect("Home.aspx");
        }

        public void writeStatus(string status, bool error)
        {
            lblmainstatus.Text = status;
            if (error == true)
                lblmainstatus.ForeColor = System.Drawing.Color.Red;
            else
                lblmainstatus.ForeColor = System.Drawing.Color.Green;
        }

        public void clearStatus()
        {
            lblmainstatus.Text = "";
        }
    }
}
